package com.idheima.zuoye.zuoye6;

public class Test {
    public static void main(String[] args) {
        People p = new athlete("345", "小王", "男", 18);
        System.out.println(p);
        p.eat();
        System.out.println("-----------");
        People p1 = new coach("123", "小张", "男", 25);
        System.out.println(p1);
        p1.eat();
    }
}
